Hands-On Kubernetes on Windows by Piotr Tylenda

Hands-On Kubernetes on Windows by Piotr Tylenda

Author:Piotr Tylenda [Piotr Tylenda]
Language: eng
Format: epub
Tags: COM088020 - COMPUTERS / System Administration / Windows Administration, COM046050 - COMPUTERS / Operating Systems / Windows Server, COM051440 - COMPUTERS / Software Development and Engineering / Tools
Publisher: Packt Publishing
Published: 2020-03-31T07:33:27+00:00


md .\declarative-demo

cd .\declarative-demo

Create the windows-example-deployment.yaml manifest file, which contains the Deployment definition:

---

apiVersion: apps/v1

kind: Deployment

metadata:

name: windows-example

labels:

app: sample

spec:

replicas: 1

selector:

matchLabels:

app: windows-example

template:

metadata:

name: windows-example

labels:

app: windows-example

spec:

nodeSelector:

"beta.kubernetes.io/os": windows

containers:

- name: windows-example

image: mcr.microsoft.com/dotnet/core/samples:aspnetapp-nanoserver-1809

ports:

- containerPort: 80

Create the windows-example-service.yaml manifest file, which contains the LoadBalancer Service definition:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.